package cn.doitedu.producer.high.datasource;

import java.util.ArrayList;
import java.util.Iterator;

public class TestRandomDataSource {
    public static void main(String[] args) {

        RandomDataSource dataSource = new RandomDataSource("1000");
        for (String line : dataSource) {

        }


        Iterator<String> iterator = dataSource.iterator();
        while(iterator.hasNext()){
            String next = iterator.next();
        }


    }

}
